Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clean function to remove any bad words with characters or spaces from a string #109

Open
wants to merge 12 commits into
base: next
Choose a base branch
from

Conversation

Lapro15
Copy link

@Lapro15 Lapro15 commented Apr 16, 2021

#106
#108

Clean function does not remove words with characters or spaces between letters, for exemple: "f u c k" or "f*ck". This is due to the split (/ \ b \ /) which separates into words the letters between spaces or the characters before and after the special characters. The function isProfane captures bad words regardless of their form. So I reuse this capture to make the change in the string sent to the clean function.

@Lapro15 Lapro15 changed the title Fix clean function for removing any bad words with characters or spaces from a string Fix clean function to remove any bad words with characters or spaces from a string Apr 16, 2021
@timoisalive
Copy link

Hey! Will this be merged sometime soon...?

@JumpyLionnn
Copy link

this is exactly what i need 😄

@web-mech web-mech added the help wanted we need help with this problem label Jan 5, 2023
@web-mech web-mech changed the base branch from master to next January 5, 2023 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted we need help with this problem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants